pin bug fix