fix pam workaround
Merge branch 'master' into java8

* master:
  fix pam workaround