fix issue with multiple spaces in labels