fixed stats bug with end time being null and current day computations