bug fix: correctly close title tag