fixing port numbers