prevent bad access (fixes winrtcompiler tool)