fix the loginInit bug