Fixed a few signed with unsigned comparisons