msvc compiling fixes / saving crash fix