Problems with unsigned comparisons (easy fixes, TODO)