Fixed incorrect detection of existing time segments when resizing a time segment in the graph.