fix unsigned/signed comparision warning