fix timestamp update