copy res when update resource