fix broken dates (closes #31)