fixed a bug preventing localhost settings from being set