oops, fix variable incrementation accidentally removed in 160fd58023