change clone to dup

Rails >= 3.1, clone copies the id, so change to dup