Change variable increment operator because it sometimes doesn't work.