Broken onRemove function

Removing children causes error, because parent has already been removed. In addition, turning off the event handler for "zoomend" didn't match where it was turned on.