Rick, if I remember this problem is related to the handling of the $myprefs array that is stored in the session. During login, the correct value isn't available in do_login().
I fixed that issue about a year ago on my modified board, so I don't remember the extact reason, but I had to change several places in ubbt.inc.php where $_SESSION['myprefs'] is involved.