Fixed bug for Linux environment