Fix crash in the library.