Fixed wrong assert on linux