fixed nil error when disconnected, removed appsdk light