unsigned/signed conversion fix