fix logging of signed values