Memory leak fixed
Crash on plugin removal fixed