Fix Resource Check Bug
Fix bugs since remove of return.
Merge pull request #6 from CodeMonkeyism/Datao

Fix bugs caused by remove of return.