Fixed timing issue on SPI