Fix setting of wrong global path