Fixed the getResult bug