Fix issue with this in the Intent creation.
Merge pull request #3 from rogerhu/fix_intent

Fix issue with this in the Intent creation.