fix cursor focus bug
fix search bug