fixing bugs in pages