Detect wrong component

fixes #23
Thanks for this one. :smile: