correction on the path check