Fixed permissions errors