fixes #4324 Error in User roles when click on Reset

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