Fix broken timestamp replacement.