Fix bug where updated time is not used