Fixed a bug in the copier.