Fix objects copying.