fix create file and folder function