fixed small issues with multiple relations and role names