[Build] fix assert on debug build