1.33 release
diff --git a/R/graphics_helpers.R b/R/graphics_helpers.R
index b74d439..486dff6 100644
--- a/R/graphics_helpers.R
+++ b/R/graphics_helpers.R
@@ -42,7 +42,7 @@
     dots <- c(dots, list(width = width / res, height = height / res))
   }
   filenames <- c("file", "filename")
-  found <- na.omit(match(frmls, filenames))
+  found <- na.omit(match(frmls, filenames))[1]
   if (length(found)) {
     dots <- c(dots, setNames(filename, filenames[ found ]))
   } else {