Fixed bug for not including cookie.