bundler unload fix

bundler was not unloading correctly because of hanging reference to @definition