Fix wrong declaration of the earlier_item pointer type