Fixed displaying of empty badge legend