Fix crash in release build.