fixed TypeError in webandgis