Fixed generating story file