fix bug with having multiple date pickers