fixed bug when selecting invalid geometry type layers