Fixed issue #2870 adding support for multi-labels