fix phase delete issue