Fixed crash on linux