fixed sdk bugs