Fixed issue with assert on linux.