fix when notify_terminal_if_duration_is_changed