fixed bug unsaved changes with plugins