restore origin from $obj