result dates range bugfix