fix bug-query entity