Hack fix to shiny scoping problem