Fixed another logic error in sending segmented packets