Fix first login error bug