edit event bug fix