fixed template and deselection when creating new feature