fixed edit event bug