fix overwrite option