fixed new pin bug