Fix a crash

https://github.com/zsx/r3/issues/6