fix pages file