Added call to sync dialog box for Replace as a safeguard