Fixed crash after login.