Correctly find local components, fixed #5