Fixed some spi stuff