Fixed files not being deleted