Fixed crash if only one label present.