bug fixes for both voterdemo versions