Update code to fix potential crash.
Bump version to 0.91 .