#169 Fixed issue with default location.host