fix focus on edit bug.