fix integer comparisons