fix error with missing or legacy timestamp