MainResource failed to track injection status.

fixes #41
Merge pull request #42 from dankurka/fix_mainresource

MainResource failed to track injection status.