Fixed warnings on pages without subpages.
Fixed some warnings.