fix ports parser