Fixes issue where the title was printed to the screen incorrectly