fixes issues on Linux