Further fix to script which gets votes to save vote count correctly.