Fix error when no default text is set