Fix bug with empty page