Problem after deleting a task

It seems to be a bug when trying to set a predecessor task after deleting a task that was located above. The green line connector goes to the orignal task position before the delete action.

Do the following to replicate the error:
Task A -> Task B -> Task C (Task A is Task B’s predecessor and Task B is Task C’s predecessor).
Delete task B.
Try to set Task A as Task C’s predecessor.

Any fix on this?