fixed overwrite behavior