Fixbug error read directory