Fixed bug in load cookies.