Fix iteration over wps elements