Clean rangy elements on save