Fixed getResult() method