updated to delete extra fields/emitters when the new max is less than the current max