diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c
index c2168831a8fb150cee5aa367687ee8f1e0310363..318884c43bb2b9d5f71e9807b22d68cd073a904a 100644
--- a/src/modules/Image/image.c
+++ b/src/modules/Image/image.c
@@ -1,9 +1,9 @@
-/* $Id: image.c,v 1.96 1998/04/06 02:31:01 mirar Exp $ */
+/* $Id: image.c,v 1.97 1998/04/06 02:36:58 mirar Exp $ */
 
 /*
 **! module Image
 **! note
-**!	$Id: image.c,v 1.96 1998/04/06 02:31:01 mirar Exp $
+**!	$Id: image.c,v 1.97 1998/04/06 02:36:58 mirar Exp $
 **! class image
 **!
 **!	The main object of the <ref>Image</ref> module, this object
@@ -82,7 +82,7 @@
 
 #include "stralloc.h"
 #include "global.h"
-RCSID("$Id: image.c,v 1.96 1998/04/06 02:31:01 mirar Exp $");
+RCSID("$Id: image.c,v 1.97 1998/04/06 02:36:58 mirar Exp $");
 #include "pike_macros.h"
 #include "object.h"
 #include "constants.h"
@@ -1542,8 +1542,8 @@ void image_test(INT32 args)
       push_int(THIS->xsize); f_random(1); 
       push_int(THIS->ysize); f_random(1);
       push_int((i!=0)?255:0); f_random(1);
-      push_int((i!=1)?255:0); f_random(1);
-      push_int((i!=2)?255:0); f_random(1);
+      push_int((i!=1)?255:0); if (i!=4) f_random(1);
+      push_int((i!=2)?255:0); if (i!=3) f_random(1);
       f_aggregate(5);
    }
    push_float(2.0);