fixed pagerewriter