spring bean creation  bug correction