bug fix gCodegeneratorIndex counter