fix bug: predefined clear nodes are not removed correctly