fixed bug where app was crashing when publishing a story