Fix port command for -Qs
Fix port command for -Qi