compare operation behaves differently under 2.5