bug fix - setResult()