fixes access denied error for locations if there are no loc_groups yet