Fixed asserts for release build.