fix creation of dir