Fixed broken criteria saving

This fixes a bug that caused criteria to not be saved.  Oops.