Fixed bug with day start and end.