fixed issue where query gets executed and endpoint is changed (but not lost focus)