fixed bug with date picker on filtering