fixing errors on linux