fixed onresult event