added refresh of polygon classes after remove