fixed some bugs in readdir