Fixed incorrect pin state