fixed bug in handleResult