fix for Spring initialization bug.