Fix spi batch