Rotate plane generates incomplete results

I need to rotate a list of planes so that their axis align with the tangent to a surface in the origin of the plane. this works perfectly for one selection but not for another. why are some parts missing?
Also some issues with speed.


WVW gap.gh (17.1 KB)