fix bug preventing SDK from loading