fixed mkdir problem