Fix permission inconsistencies.