When saving a port in the proxy preferences dialog, it is not set correctly.
The window should be tested, too.