fixed bug with ports mismatch