Fix undefined $page variable