This patch checks only reset some fields. These fields are chosen as an example. If you think that needs checking all the fields, let us know. But it is obvious that such a check is sufficient to reproduce the problem.