fixed some weird login problem