fixes #6194 Deleted Role name still appear

Fixed the issue and pushed the code for review, please check it.