handle the resolved-with-promise case correctly
Merge pull request #9 from nathan7/fix-delegation

Fix delegation