Fix #367 xiami app

as title
Merge pull request #370 from karlcheong/master

Fix #367 xiami app