shorten: fix array subscript is below array bounds warning

Incidentally fixes alpha builds.