Fixed crach on Linux