Fix confusion between Double and DateTime fields.