Fixed bug that caused problems when trying to render plugin using the same DOM element.