fix bash errors on linux;