Detect wrong component

fixes #23
That was even better. Thanks!

Now please add the appropriate depth here. :smile: