fixed bug on query editor