Index: trunk/ippScripts/scripts/stack_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/stack_skycell.pl	(revision 21014)
+++ trunk/ippScripts/scripts/stack_skycell.pl	(revision 21015)
@@ -294,5 +294,5 @@
 
     unless ($save_temps) {
-	print "Ensuring temporary images are deleted.";
+	print "Ensuring temporary images are deleted.\n";
 	delete_temps();
     }
@@ -331,5 +331,5 @@
 	my $temp_dir = metadataLookupStr($md, 'TEMP.DIR'); # Directory with temporary files
 	my $temp_image = metadataLookupStr($md, 'TEMP.IMAGE'); # Suffix for image
-	my $temp_mask = metadataLookupStr($md, 'TEMP.IMAGE'); # Suffix for mask
+	my $temp_mask = metadataLookupStr($md, 'TEMP.MASK'); # Suffix for mask
 	my $temp_weight = metadataLookupStr($md, 'TEMP.WEIGHT'); # Suffix for weight
 	my $temp_root = basename($outroot); # Root name for temporary files
