Index Error while rendering. This happens when the requested for lower time-span values (say 5 mins, 20 mins etc...). Now using the correct index value.