Fixed win detection.