Fix beans initialization errors