Added script to update erased duplicated references