Fixed undo for size two programs.