Fix bug and improve scoring algo in get_items