Fixed problems on Linux