That should do it. Just check your geoIndex by turning on numeric
display and typing in collisionGeometryIndex so you can see your PP
ids. You may have created and removed objects here and there causing
your index values to be different.
Re: your second question, Im not 100% sure actually. I think it has to
do with having different goals weights per goal objects so essentially
you are making the if statement obsolete.