I have yet found the problem, but I did found a bug:

if ((%vote.cast.nick. [ $+ [ $calc(%counterfour) ] ] == $nick) || (%vote.cast.address. [ $+ [ $calc(%counterfour) ] ] == $address($nick,2)) {


I get If invalid format line 380. You have 6 "(" and 5 ")"


This line shoule be:
if ((%vote.cast.nick. [ $+ [ $calc(%counterfour) ] ] == $nick) || (%vote.cast.address. [ $+ [ $calc(%counterfour) ] ] == $address($nick,2))) {