Fixing port problems