Remove left-over event listener from the template