Fix bug on runQuery for avoiding type any time.