kpi bugfix
Merge branch 'function-offline' of https://github.com/binzh/sdpqa into function-offline