fix page allocater