Fixed an issue causing the plugin to fail when more than one element is flexed into a single element