fixed all errors in timegrid rendering