fix bug with make for readdir