fixes legend that was truncated