fix for ports issue