Mistaken vote helps legalize gas drilling in NC