fix bean creation issue