User role assignment bug fixed