SPI level fix for issue #863.
Merge pull request #864 from mdogan/fix/3.1/transaction

SPI level fix for issue #863.