Small fix and missing stuff.
Merge pull request #168 from aRn0D/resource/index-resource

Small fix