fixed dir already exists error