fixed HEAD error