Fixed an issue where the filterFields variable wasn't being cloned.