polylines are destroyed correctly

polylines directive is fast as long as it is not all editable!