Prevent overshoots with line offsets