fixing bug in how we get the bean