fix bug caused by sdk bug