fix for null dates (from upgrades)