fixing the way to get the beans, it's still not injecting as expected, but it's working fine now