Fixed protocolHandler to handle votes