Fix signed/unsigned comparison