diff --git a/MatterControl.MeshOperations/MatterControl.MeshOperations.csproj b/MatterControl.MeshOperations/MatterControl.MeshOperations.csproj
index b2307c2f5..2a52fe411 100644
--- a/MatterControl.MeshOperations/MatterControl.MeshOperations.csproj
+++ b/MatterControl.MeshOperations/MatterControl.MeshOperations.csproj
@@ -11,9 +11,9 @@
+
-
diff --git a/MatterControl.Printing/GCode/GCodeMemoryFile.cs b/MatterControl.Printing/GCode/GCodeMemoryFile.cs
index eba09082d..85b33357f 100644
--- a/MatterControl.Printing/GCode/GCodeMemoryFile.cs
+++ b/MatterControl.Printing/GCode/GCodeMemoryFile.cs
@@ -322,6 +322,7 @@ namespace MatterControl.Printing
{
layerIndex--;
while (layerIndex >= 0
+ && layerIndex < layerHeights.Count
&& layerHeight < .01)
{
// walk back to find a layer height that seems like it might be right
diff --git a/MatterControlLib/Library/ContentProviders/GCodeContentProvider.cs b/MatterControlLib/Library/ContentProviders/GCodeContentProvider.cs
index e5ce4e82a..edcaf9d17 100644
--- a/MatterControlLib/Library/ContentProviders/GCodeContentProvider.cs
+++ b/MatterControlLib/Library/ContentProviders/GCodeContentProvider.cs
@@ -66,7 +66,7 @@ namespace MatterHackers.MatterControl
public Task CreateItem(ILibraryItem item, Action reporter)
{
- System.Diagnostics.Debugger.Break();
+ // System.Diagnostics.Debugger.Break();
return null;
}