unsigned comparison fix