Fix iteration over registered elements