solved issue with breaking plugin when no labelbox is checked