Fixed a bug with empty page name.