fix overlays for files and pages