fix the dirscan