Fix instantiation leak