Fixed bug when running on linux