Fix error in timestamp protection