fixed signed mismatches