Fix cookie issue with Firefox