Fix off-by-one bug with endOfStartLevel replace.