fixes bug not working on linux, small changes