cleanup, fixed a bug with the story grouping implemenation