Prevent an args-out-of-range error during login/out