Fixed bug with the pin.