better handling of empty labels