Fixed the major bug with multiple instances on one page