fix closure on removed bindPopup