Fixed issue with cookies