fix legend translation bug