fix autowire setting for annotation-based components