setting cookies fixed