diff --git a/R/shiny-ui-top.R b/R/shiny-ui-top.R
index ebef392da1da45a0e86bf8f122a37ad52e2060ff..ab27df8dddc539f3528f305da26601d775446ef9 100644
--- a/R/shiny-ui-top.R
+++ b/R/shiny-ui-top.R
@@ -72,7 +72,7 @@ launch <- function(GUI=T,fn_conf="",...) {
         app<-mk_shinyscreen()
         shiny::runApp(appDir = app,...)
     } else {
-        if (nchar(fnConf)==0) {
+        if (nchar(fn_conf)==0) {
             fn_conf <- commandArgs(trailingOnly=T)[[1]]
         }
         run(fn_conf)