corrected the bean creation error