check for active components to avoid notices
Merge pull request #1 from imath/master

check for active components to avoid notices