fix field params for generate token