fix: wrong element passing to click callback in element path menu