fixing editing event