Before you call it a mistake, could it be the precise, unexpected turn that re-writes your story toward an ending you couldn't have dreamed up? Trust the pen in your own hand; the narrative isn't finished yet.