fix git << head errors