spi fix state loss