head mismatch fix