Fixed undoing bug.
Fixed undo bug with fouls.