Problems with page.find() in get_next_target()