fix #1444 -- fix STORY_INDEX generation

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>