Cleaning for plugin