fix valid ports range.