Fixed undefined index in page tpl