Bug fix: map.clear() not working #187