Date picker is frozen when selecting a date