Fixed findPredecessor.