Fix problem with mg pointing at local server