Fix (hopefully) for Windows runtime error.