Fixing typo in subset2

`r` was used when `sub` was intended.