Fixed undefined header and title prob w/ closure