fix bug for viuce query