fix page management bug