diff --git a/pom.xml b/pom.xml
index e2282ec429..82b584aec5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
github-api
- 1.13
+ 1.14
GitHub API for Java
http://github-api.kohsuke.org/
GitHub API for Java
diff --git a/src/main/java/org/kohsuke/github/GHRepository.java b/src/main/java/org/kohsuke/github/GHRepository.java
index 3120ee1ebc..db1d37e18d 100644
--- a/src/main/java/org/kohsuke/github/GHRepository.java
+++ b/src/main/java/org/kohsuke/github/GHRepository.java
@@ -190,9 +190,9 @@ private void modifyCollaborators(Collection users, String op) throws IOE
public void setEmailServiceHook(String address) throws IOException {
WebClient wc = root.createWebClient();
HtmlPage pg = (HtmlPage)wc.getPage(getUrl()+"/admin");
- HtmlInput email = (HtmlInput)pg.getElementById("Email_address");
+ HtmlInput email = (HtmlInput)pg.getElementById("email_address");
email.setValueAttribute(address);
- HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("Email[active]");
+ HtmlCheckBoxInput active = (HtmlCheckBoxInput)pg.getElementById("email[active]");
active.setChecked(true);
final HtmlForm f = email.getEnclosingFormOrDie();