Changed rm_renameRel to copy the given relation instead of modifying it directly.