Fixing some unsigned int comparisons