fix assert on mac