fixed bug caused by not setting start/end time using between