Fix result passing