storycount bug fix