Fix bug: #26 Strange errors with removeLayer.