fix pam workaround