fix cannot login admin bug