subparse: fix off by one offset calculation