fix page header logic issue.