fix IE6-8 throwing error on map.remove(), close #2015