Fixed invalid redo when target changes from remote to local.