fix spi interface