fix SPI reads