Fixed wrong geometry being displayed if polygon count is changed.