fix Update bug for new files