Some fixes in date range picking