Fixed a silly crashing bug in the FFI code.