page_cnt reset to 50; bugs fixed