deal with empty head.