fix the focus on editor