Fix the regression for the preview function

When we update the render packages, we need to clear the old render packages so that if the node is invisible, there is no content in the render packages.