Fix incrementation of integer value
Fix bug that prevents x-axis from moving