Fixed resources bug. Fixes #1
testing code
Merge pull request #2 from Malanius/bug-fix

Bug fix