fix replydata bugs