Fix signed/unsigned mismatch