fixed get resources hook
Merge pull request #219 from laterpay/fix-get-resources-hook

fixed get resources hook