avoid infinite loops in jump skipping