https://issues.jenkins-ci.org/browse/JENKINS-22624
Fixing compatibility issue.
Fixes #2