bug fix on #assign_token