fixed crash on Linux