Detect wrong component

fixes #23
Parenthesis: `keys(%components)`, for consistency with the code below.