connection wait fix