fixed a pin destroy problem