fix: remove undefined and unnecessary argument
fix wrong element name and resolved looping behaviour