fixed story creation issue and it is not handling errors correctly