fixed a small bug when local server settings are not specified