#FEC-2343

fix replay detection logic