fix vector layer bug