Before changing path