fixed en error with empty local_roles