Fixed a bug that caused switching tasks while editing a task name to replace the task name in the second task.