workaround for caret-lost problem.