fix the bug of profile-cookie is too big