fix lost caret