fix size check on poly*