trying to fix crashes on Linux