Fixes a stupid effing bug that only occured on linux not osx.