fix posts controller and static pages