fixed unsigned integer issue