Fixed signed unsigned int mismatch