Fix: view going into infinite loop of calling getQueryResult.