Fix port edit