fix staging install deletion before install