avoid failure on capabilities legend size with empty class name