Fixed bug where reloading container does not reset bean refs