fixed front-end date range error