Fixed syntax issue for variables.

CHANGES
* Fixed missing brackets for $endTime array.