fix HEAD error