Fix promises
Merge pull request #4 from tomshen/patch-1

Fix promises -- Tom's changes