Fix the hasCapturePaths logic.