Fixed overwrite bug when using --multipass.