CAL-229 fix wrong index of green period