Fixed legend text truncate problem