Fix comparison signed and unsigned