Fixed issue #634: Fixed adding and changing user roles for admin