OnCommit and OnTag use all elements, not just first