Fix a bug in the storyline code.