bean factory fixed