Fixed bug pin numbering