fix for creation of proxies during poly test where an index out of bound...

...s exception can occur.