Fix path bug in election data calculations