fixed bug with cockie