Fix bean definition problem