Fixing bug when adding cookie.
5.0.4