edit bug fix