Fix the way counter value (x-axis value) is passed

Seems to work. But not really