fixed edit pins error