Fixes an error which occurs while unloading the addon. Issue #15