Fixing signed/unsigned mismatch introduced in previous commit