fixes #2679 pie get error when the label is too long