Correctly detect global component
(#19)