prevent crash with rare issue in ding word logic