fixing code for missing bezier2 segments