fix typo on copyregion 'oriin -> origin'