fix auth hanlder error