Fixed comparison with cookie data