Fix client port assertion