Fix overwrite bug and proj4string bug.