fix generate static page issue