select pin on click bug fix