fixing injection of beans with a relationship