Fix page lookup implementation