Moving the attribute copy so the id is set