fix for JENKINS-13347

https://issues.jenkins-ci.org/browse/JENKINS-13347