Iterate pages in starred handle + fix possible bug of inf-loop