fixed bug in copy feature