Fixed wrong copy bug