Fix: resource objects incorrectly stored across methods.
Merge pull request #78 from dblock/fix-resource-methods

Fix: resource objects incorrectly stored across methods.