fixed off by 1, reply state broken (off by 1?)