reset internal label length when a new label is set, fixes #17573