fix bugs(delete dir)