fix bug in xiaomi