Fix crash in timestamp code.