Fix broken bean references.