Bug - File permissions were not set