fixes to log by date range