fix registering teacher vote bug