fixes for label plugin