fix integer values representation