fixed ensure auth bug
sync