Undemocratic parties in a democratic system