Perfect War breaks 537-day drought with long shot win