fixed create dir but create a strange file bug