Fix empty page and landscape mode