fixed assert on linux