Fixed error with component-scan