Fix a bug when try to create a new role