fixed small bug in the two's complement