corrected bugs in the plugin implementation for Container.js