temp fix for "handleDisconnects" error