Corrected bug in component scan