fix hosts saving