Fixed a bug on Linux systems.