Fixed bug when setting a hostOnly cookie.