fixed small bug with pin selection