fix bug of android api server, fix the dead loop