fix errors on linux