fix directory permissions