config fix pams stack bug