Fixed so it would work on shinyapps.io