Fix a condition for proper filtering of transient/non-transient fields.