Fix load_user_roles. Fixes #5141