Fixed a bug in MSVC-9 workaround.