pin state fix