Fixed a bug that stops compilation randomly in MSVC.