fix parsing of two's complement