Fixed check token bug