Fix bug related to bean wiring