fix timestamp compare, should only compare write timestamp