Fixed not deleting some objects when unloading module