Fixed bug with DateFields.