changed the way for fixing an error when a waitor is used for an element embedded into a removed section