Fixed cookie setState