SPI issues fixed