Fix Unsaved data error on change in search field