kcp 0.25-dev - correct infinite loop