fix the reset, needs to be -1 so the first thing goes back to 0