Fix for checking boundaries of path-marks.