to fix bug after adding query plugin