Fixing unsigned vs int comparisson