fix comparison