Fixed repeat path checking.