fixing JENKINS-22427 (https://issues.jenkins-ci.org/browse/JENKINS-22427)