Correct value compare on set