Update pin index