Fixing #20 (custom ports disappearing)