Placed title initialization in the wrong function.