Fix assert error in debug edition.