Fix setResult