Fix NoResource bug issue #4