fix target file of directory checked