fixed the retrieval of the last host you connected to