Bug fix related to add role api.