fix typing error

Replace undefined `sr` to `rowid`.