Fixed references in copy/paste