fix error in the algorithm:find the maxlen pre node, not the nearest pre node
a case to demostrate the error