fix api key cast exception
Merge branch 'hotfix/1.0.2'