fixed the crash when you login the first time