Fixed a join bug on Linux systems