Add groupindex to static objects