Fixes the dirtyness of the filterIt template. Refs #351.