Detect wrong component

fixes #23