Fix saving file behavior of vector layer and camera layer