Fix timestamp if ntimestamp == 0.