fix init beans twice