fixed some compare and tooltip bugs