fixing the port issue in config generator