Fixed issue with cookies introduced in previous commit