diff --git a/R/pages.R b/R/pages.R
index 6878db798a316730ec63e148209a21046023da8d..99192b97a3dc5a960da3ebb580407de8bbe7b45a 100644
--- a/R/pages.R
+++ b/R/pages.R
@@ -61,5 +61,5 @@ setMethod("remove_page", "i2dashboard", function(dashboard, page) {
 #' @return A sanitized string.
 .create_page_name <- function(x) {
   . = NULL # workaround for R CMD check note: no visible binding for global variable '.'
-  x %>% tolower %>% gsub(x = ., pattern = " ", replacement = "_") %>% make.names %>% return
+  x %>% tolower %>% gsub(x = ., pattern = " ", replacement = "_") %>% make.names %>% return()
 }
\ No newline at end of file