Fix error when first item was between first and second block