Fixed handling of mx-dates.