Yeah, have Nicholas not rescind the demobilization order.
IIRC, the Kaiser called the Czar, upon recieving word that the Russian Army was mobilizing, and told him that if Russia mobilized at all, then Germany would be forced to mobilize, and that would mean war. Seeking to avoid a general war for the time being, and hoping that the issue could still be diplomatically resolved before the Austro-Serbian crisis/war got out of hand, Nicholas called for demobilization.
Enter France and Nicholas' Generals. France then gets on the line, and issues a statement of support to Russia, saying that if Russia continues to mobilize, France would move to mobilize in support. Germany would then be in a tricky position, and could not mobilize against both, and therefore, war would be avoided out of Germany's fear of the two front war. Nicholas' Generals also voiced opposition to the idea, stating that the mobilization gears were too far along to just turn back and that it would be far better to just continue, because demobilizing would do much more damage to Russia's chances to remobilize in a hurry.
So, Nicholas ordered the mobilization to continue, and the rest is history...