fixing issue with delete and make dir