diff --git a/coders/avs.c b/coders/avs.c
index 2127d90..dc9012a 100644
--- a/coders/avs.c
+++ b/coders/avs.c
@@ -362,7 +362,7 @@
       Write AVS header.
     */
     if (IsRGBColorspace(image->colorspace) == MagickFalse)
-      (void) TransformImageColorspace(image,RGBColorspace);
+      (void) TransformImageColorspace(image,RGBColorspace,exception);
     (void) WriteBlobMSBLong(image,(unsigned int) image->columns);
     (void) WriteBlobMSBLong(image,(unsigned int) image->rows);
     /*