Fixed undo for delete command which saved the wrong task to be re-added