Index: ../trunk-jpl/src/m/classes/model.m
===================================================================
--- ../trunk-jpl/src/m/classes/model.m	(revision 18479)
+++ ../trunk-jpl/src/m/classes/model.m	(revision 18480)
@@ -239,7 +239,9 @@
 			md.geometry.surface=project2d(md,md.geometry.surface,1);
 			md.geometry.thickness=project2d(md,md.geometry.thickness,1);
 			md.geometry.base=project2d(md,md.geometry.base,1);
-			md.geometry.bed=project2d(md,md.geometry.bed,1);
+			if ~isnan(md.geometry.bed),
+				md.geometry.bed=project2d(md,md.geometry.bed,1);
+			end
 
 			if ~isnan(md.mask.groundedice_levelset),
 				md.mask.groundedice_levelset=project2d(md,md.mask.groundedice_levelset,1);
