Fixed last commit causing crash with MSVC.