fixed mixed-up increment index in activities fixup