fix autowired beans