Fix off-by-one in fragment parsing.