Fix UNEXPECTED STORE EXCEPTION error on Windows 10