Bugfix when running without sudo