fixed mkdir bug