DebugLayer crashfix