Frontend: Fix off-by-one error when fetching data.