fix timing bug for cookies and code