Fix id of fromDate and toDate, typo and field checked