Fix ubs_performance 2nd "round" tested only on WindowsXp.

Some stuff need to be cleaned.