fix freeze script
fix static page generation at the cost of nice code...