editing bug fix