fix resetting token