fix defaultContainer deprecation warnings.