fix error if current page doesnt exist