Change undeploy order