fixed copy bug