Fix crash on windows (camera)