Fix Range bug in SPI