fix signedness