Fix a wrong argument for get_histories_for_item.