fix a bug in version mismatched packets