- fixed error with onresult being cancelled