fix spi memory