fix pin counts