fix the crash that the directory entry does not have any sector