signed unsigned comparison fix