fix connection miniapp