resolved some issues with the stories loop