Fix bug for WinRT leading to crash on startup