fix a bug when use jquery-cookie to logout