fix crush in release build