Fix edit event bug.