fixed a bug which lead to a dead page.