Avoid the problem when a unit change trajectory