fix removeOutliensForElement