fix a bug: add s or t nodes back when compound paths are removed