fixed crash on linux