fix call to old.end()