Fix sign bit corruption