added unprefixed filter
check for existance of mask parent node before removing child