fix big regression after pin count change