fix for dynamic title printing

just a hotfix for printing titles depending on which page you're visiting.