You have to follow the logic of your characters while you're writing.