Fix off-by-one in category links

Change-Id: I1778776df32925231a35570db939bf9add8d2f65