fixes #2850 Crash when entering a hint that is too long