Fixed use of a Freemarker variable and adjusted implementation of title tag