fixed static pages bugs