Fix bug that it doesn't update if timestamp is invalid