Missed changing an `ids` reference to `ranges`.