adding fix for writing multiple stories at once