fixes http port parsing issue