Prevent memory leak caused by anonymous package creation.