fix rm-subelems