addPortToVS: prev fix was incorrect

$port is a structure, not a number