fix server to check sequence number mod 2