Fixed parsing issue with ports

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>