Fixes few warnings for DatePicker.