Fixed the sum range variable subscipts.