Bugfix linux open, from ubuntu