correct typo causing bad date output