caret defocus fix