fixing delete pin issue