Fixed bug on Linux