Fixed problem with two complement conversions