Fix bug with the increment