Clean up permission bits