fixed bug with wrong beans