fix auth crashed, update locate logic