fix for directories