fix #3761: crash when long-clicking on a value field