Why is path being deleted