Minor fix to endtime variable.