addresses #47: Disallow invalid date ranges - minor fix to last commit