Fix logged in cookie dection ordering issue.