Autocomplete fixes. Log fixes according to http://blogs.msdn.com/b/oldnewthing/archive/2008/06/27/8659071.aspx.