Fix lint issue and fix default value for base_port