Fix retrieval timestamp in case of error.