Fixed bug on linux system with Substance library.