Fixed the cookie bug (#15)