fix allowes for directories