Fixes dubplicate spring context bug