Fix bug could not login