undo bug fix