I use UBBT 6.5. In the instructions for 6.5 you say that there are 6 occurences of "return $thisvar;". I have two additional occurences of "return $thisvar;" in the if ($type == "session") block. This matches with your 6.3 and 6.4 instructions.
Did you make a typo?
Tjerk.