Fix port param error