fix issue #101 cookieParser breaks when a page reloads