Fix first login bug